package cn.jiyun.controller;


import cn.jiyun.common.config.Result;
import cn.jiyun.service.IGoodsProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
@RestController
@RequestMapping("/xm-goods/goods-products")
public class GoodsProductsController {
    @Autowired
    private IGoodsProductsService goodsProductsService;

    @RequestMapping("/findbyid")
    public Result findbyid(Integer id) {
        return Result.ok(goodsProductsService.getById(id));
    }

}
